#pragma once
#include "C_Sprite.h"

class C_SpaceSprite :
	public C_Sprite
{
private:
	float	*m_cellSize;
	S_Pointi16 m_spaceSize;

	C_Sprite *m_lightSprite; 
	C_Sprite *m_backSprite;

public:
	C_SpaceSprite();
	virtual ~C_SpaceSprite();

	inline void setColorLight(sf::Uint8 r, sf::Uint8 g, sf::Uint8 b, sf::Uint8 a = 255) 
	{ 
		m_backSprite->setColor(r, g, b, a);
		m_lightSprite->setColor(r, g, b, a); 
	}
	void setSpaceSize(INT16 x, INT16 y) { m_spaceSize.x = x; m_spaceSize.y = y; }
	void setCellSize(float* cellSize) { m_cellSize = cellSize; }
	S_Pointi16 spaceSize() { return m_spaceSize; }

	virtual void render();
};

